﻿@model SoftHotel.Models.ProductoModel

@{
    ViewBag.Title = "Agregar";
}


@using (Html.BeginForm())
{   
     @Html.ValidationSummary()
    <h1><strong>Formulario Nuevo Producto</strong></h1>
    <br />
    <table id="MainContent_Table1" rules="none" style="border-color: Black; width: 900px; margin-bottom: 0px;"> 
            <tr>
		        <td style="width: 20px;"></td>
		        <td style="font-weight: bold; width: 220px;">Descripción </td>
		        <td style="width: 220px;">@Html.TextBoxFor(Model => Model.descripcion)</td>
		        <td></td> 
		        <td style="font-weight: bold; width: 220px;"> Categoría </td>
		        <td style="width: 194px;">
                    @Html.DropDownListFor(Model => Model.categoria, (SelectListItem[])ViewBag.Categorias, "Seleccione")
		        </td>
	        </tr>
            <tr>
		        <td style="width: 20px;"></td>
		        <td style="font-weight: bold;">Estado</td>
		        <td>
                    @Html.DropDownListFor(Model => Model.estado, (SelectListItem[])ViewBag.Estados, "Seleccione")
                </td>
                <td></td>
		        <td style="font-weight: bold;"></td>
		        <td></td>
	        </tr>
    </table>

    <br /> 
    <br />
    <!--<h2>Detalle Productos Agregados</h2>
    <br />
    -->
    <table id="añadir" rules="all" style="background-color: #BDBDBD; width: 900px; margin-bottom: 0px;" border="1">
	    <tr>
            <td>
                <input type="submit" name="button" value="Añadir" />
		        <input type="submit" name="button" value="Eliminar" />
            </td>
	    </tr>
    </table>	

    <br />
    //Html.RenderAction("Agregar2", "Producto");

} 
  <!--
   <br />
    <form action = "/Producto/AgregarGuardarCancelar" method = "post">
        <center>
	        <input value="Guardar" type="submit" name = "button"/> @{/* que estos sean tipo button*/}
	        <input value="Cancelar" type="submit" name = "button"/>
        </center>
    </form>
    <br />    
    -->

      
